//
//  LeftModel.m
//  漫威
//
//  Created by 梅津山 on 2017/5/10.
//  Copyright © 2017年 梅津山. All rights reserved.
//

#import "LeftModel.h"

@implementation LeftModel

- (instancetype)initWithDict:(NSDictionary *)dict{
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}

+ (NSArray *)lefts{
    NSString *file = [[NSBundle mainBundle]pathForAuxiliaryExecutable:@"Home.plist"];
    NSArray *now = [NSArray arrayWithContentsOfFile:file];
    NSMutableArray *new = [NSMutableArray arrayWithCapacity:now.count];
    for (NSDictionary *dict in now) {
        LeftModel *left = [[LeftModel alloc] initWithDict:dict];
        [new addObject:left];
    }
    return new;
}

@end
